import 'package:flutter/material.dart';
import 'package:flutter_baby_health_tracker/widgets/card.dart';

class SettingScreen extends StatefulWidget {
  const SettingScreen({super.key});

  @override
  State<SettingScreen> createState() => _SettingScreenState();
}

class _SettingScreenState extends State<SettingScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('设置')),
      body: SingleChildScrollView(
        child: Column(
          children: [
            LiCard(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  Container(
                    decoration: BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.pink[200],
                    ),
                    padding: EdgeInsets.all(36),
                    child: Center(
                      child: Text("宝", style: TextStyle(fontSize: 20)),
                    ),
                  ),
                  Text('Jennifer', style: TextStyle(fontSize: 22)),
                  Text('1岁3周', style: TextStyle(fontSize: 16)),
                  SizedBox(height: 16),
                ],
              ),
            ),
            LiCard(
              child: Column(
                children: [
                  ListTile(
                    title: Text('切换宝宝'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.swipe),
                  ),
                  ListTile(
                    title: Text('编辑宝宝'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.edit),
                  ),
                  ListTile(
                    title: Text('通知'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.notifications_active),
                  ),
                  ListTile(
                    title: Text('计量单位'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.abc),
                  ),
                  ListTile(
                    title: Text('传输数据'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.transform),
                  ),
                  ListTile(
                    title: Text('Excel报告'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.table_chart_rounded),
                  ),
                  ListTile(
                    title: Text('关于'),
                    trailing: Icon(Icons.keyboard_arrow_right_rounded),
                    leading: Icon(Icons.info),
                  ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
